package com.wowangz.cms.syscore.autotask.service;

import java.util.List;
import java.util.Map;

import com.wowangz.cms.syscore.exception.ServiceException;
import com.wowangz.cms.syscore.pojo.RouteInfo;
import com.wowangz.cms.syscore.service.BaseService;

public class StoreDatabaseResourceService extends BaseService{

	public List<RouteInfo> queryStoreDatabaseResource(Map query) {
		List<RouteInfo> list = this.getSqlSession().selectList("StoreDatabaseResource.queryStoreDatabaseResource",query);
		return list;
	}
	
	public Long queryStoreDatabaseResourceCount(Map query) throws ServiceException {
		return getSqlSession().selectOne("StoreDatabaseResource.queryStoreDatabaseResourceCount",query);
	}
	
	public List<RouteInfo> queryStoreDatabaseByStoreID(Map query)  {
		List<RouteInfo> list = this.getSqlSession().selectList("StoreDatabaseResource.queryStoreDatabaseByStoreID",query);
		return list;
	}
}
